package com.ruoyi.tranShort.mqtt.response;

import com.ruoyi.tranShort.mqtt.api.GatewayResponse;

/**
 * @author wwy
 * @date 2021-08-10 15:17
 */
public class ConnectDeviceLongResponse implements GatewayResponse {
    private int code;
    @Override
    public boolean isSuccess() {
        if(code == 200){
            return true;
        }
        return false;
    }

    @Override
    public int code() {
        return code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
